package MyfuncIndex

import (
	"github.com/gin-gonic/gin"
	"net/http"
	"time"
)

func GetIndex(context *gin.Context) {

	username := "丽丽"
	age := 32
	str := []string{
		"李四",
		"张三",
		"王五",
	}

	time := time.Now()
	time1 := time.Format("2006-01-02 15-04-05")
	date := gin.H{
		"username": username,
		"age":      age,
		"str":      str,
		"time":     time,
		"time1":    time1,
	}
	context.HTML(http.StatusOK, "demo01/index.html", date)

}
